﻿using SqlSugar;
using YNTK.Common.Const;
using YNTK.Common.Entity;

namespace YNTK.EIMS.Entitys.Suppliers
{
    /// <summary>
    /// 供应商信息
    /// </summary>
    [SugarTable("eims_suppliers")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class SuppliersEntity : CLDEntityBase
    {
        /// <summary>
        /// 所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId", ColumnDescription = "所属组织id")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 所属机构id
        /// </summary>
        [SugarColumn(ColumnName = "F_MechanismId", ColumnDescription = "所属机构id")]
        public string MechanismId { get; set; }

        /// <summary>
        /// 供应商分类id
        /// </summary>
        [SugarColumn(ColumnName = "F_ClassifyId", ColumnDescription = "供应商分类id")]
        public string ClassifyId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [SugarColumn(ColumnName = "F_SupplierName", ColumnDescription = "供应商名称")]
        public string SupplierName { get; set; }

        /// <summary>
        /// 供应商编号
        /// </summary>
        [SugarColumn(ColumnName = "F_SupplierNo", ColumnDescription = "供应商编号")]
        public string SupplierNo { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnName = "F_Contact", ColumnDescription = "联系人")]
        public string Contact { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [SugarColumn(ColumnName = "F_ContactWay", ColumnDescription = "联系方式")]
        public string ContactWay { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [SugarColumn(ColumnName = "F_Address", ColumnDescription = "地址")]
        public string Address { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "F_Description", ColumnDescription = "备注")]
        public string Description { get; set; }

        /// <summary>
        /// 供应商介绍
        /// </summary>
        [SugarColumn(ColumnName = "F_Content", ColumnDescription = "供应商介绍")]
        public string Content { get; set; }

        /// <summary>
        /// 共享范围(0.全组织 1.特定机构 2.特定角色 3.特定用户 4.仅自己可见)
        /// </summary>
        [SugarColumn(ColumnName = "F_SharedScope", ColumnDescription = "共享范围(0.全组织 1.特定机构 2.特定角色 3.特定用户 4.仅自己可见)")]
        public int SharedScope { get; set; }

        /// <summary>
        /// 共享范围,多个机构/角色/用户按逗号分割,SharedScope为0或4时为空
        /// </summary>
        [SugarColumn(ColumnName = "F_SharedScopeValue", ColumnDescription = "共享范围,多个机构/角色/用户按逗号分割,SharedScope为0或4时为空")]
        public string SharedScopeValue { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        [SugarColumn(ColumnName = "F_ViewCount", ColumnDescription = "浏览次数")]
        public int ViewCount { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }
    }
}
